<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8"></meta>
    <link rel="shortcut icon" href="favicon.ico"/>
    <title>${i18n('system.name')}</title>
    <%include("/include/_css.html",{_module:['font','cropper','ztree'],_include:['rsdp.css']}){}%>
    <%include("/include/_js.html",{_module:['cropper','highcharts','justgage','ztree','echarts','date'],_include:['rsdp.js']}){}%>
</head>
<body>
<div id="master-layout">
    <!--开始头部-->
    <div data-options="region:'north',border:false,bodyCls:'theme-header-layout'">
        <div class="theme-navigate">
            <div class="left">
                <a href="#" class="easyui-linkbutton left-control-switch"><i class="fa fa-bars fa-lg"></i></a>
                <a href="#" class="easyui-menubutton theme-navigate-user-button"
                   data-options="menu:'.theme-navigate-user-panel'">${user('xm')}</a>
                <div class="theme-navigate-user-panel">
                    <dl>
                        <dd>
                            <img src="${ctxPath}/common/plugin/easyui/themes/1.0.4/insdep/images/portrait86x86.png"
                                 width="86" height="86">
                            <b class="badge-prompt">${user('xm')}</b>
                            <span>${user('PHONE')}</span>
                            <p>${user('email')}</p>
                        </dd>
                        <dt>
                            <a class="theme-navigate-user-modify">${i18n('text.xgzl')}</a>
                            <a class="theme-navigate-user-logout" href="${ctxPath}/logout">${i18n('text.zx')}</a>
                        </dt>
                    </dl>
                </div>
            </div>
            <div class="right">
            </div>
        </div>
    </div>
    <!--结束头部-->

    <!--开始左侧菜单-->
    <div data-options="region:'west',border:false,bodyCls:'theme-left-layout'" style="width:200px;">

        <!--正常菜单-->
        <div class="theme-left-normal">
            <!--theme-left-switch 如果不需要缩进按钮，删除该对象即可-->
            <!-- <div class="left-control-switch theme-left-switch"><i class="fa fa-chevron-left fa-lg"></i></div> -->

            <!--start class="easyui-layout"-->
            <div class="easyui-layout" data-options="border:false,fit:true">
                <!--start region:'north'-->
                <div data-options="region:'north',border:false" style="height:100px;">
                    <!--start theme-left-user-panel-->
                    <div class="theme-left-user-panel">
                        <dl>
                            <dt>
                                <img src="${ctxPath}/common/plugin/easyui/themes/1.0.4/insdep/images/portrait86x86.png"
                                     width="43" height="43">
                            </dt>
                            <dd>
                                <b class="badge-prompt">${user('xm')}</b>
                                <p><i class="text-warning">欢迎登陆</i></p>
                            </dd>

                        </dl>
                    </div>
                    <!--end theme-left-user-panel-->
                </div>
                <!--end region:'north'-->

                <!--start region:'center'-->
                <div data-options="region:'center',border:false">
                    <ul id="menuTree" class="ztree"></ul>
                </div>
            </div>
        </div>
        <!--最小化菜单-->
        <div class="theme-left-minimal">
            <ul class="easyui-datalist" data-options="border:false,fit:true">
                <%
                for(modulename in moduleNames)
                {
                if(modulename=="待办查询"){%>
                <li><i class="fa fa-tasks fa-2x"></i>
                    <p>${modulename}</p></li>
                <%}
                if(modulename=="合同台账"){%>
                <li><i class="fa fa-id-card-o fa-2x"></i>
                    <p>${modulename}</p></li>
                <%}
                if(modulename=="系统管理"){%>
                <li><i class="fa fa-cog fa-2x"></i>
                    <p>${modulename}</p></li>
                <%}
                }
                %>
                <li id="quick-menu"><a class="left-control-switch"><i class="fa fa-chevron-right fa-2x"></i>
                    <p>打开</p></a></li>
            </ul>
        </div>
    </div>
    <!--结束左侧菜单-->

    <!--功能区开始-->
    <div data-options="region:'center'" style="padding:0 5px 5px 5px;">
        <div class="easyui-tabs theme-tab-blue-block theme-tab-unradius theme-tab-unborder theme-tab-line-bold"
             data-options="tabPosition:'top',fit:true" id="mainTabs">
            <div title="首页" style="padding:10px" data-options="href:'${ctxPath}/home',"></div>
        </div>
    </div>
    <!--功能区结束-->
</div>

<!-- 关闭菜单 -->
<div id="rcmenu" class="easyui-menu" style="">
    <div id="refreshcur" data-options="iconCls:'icon-reload'">刷新</div>
    <div id="closecur" data-options="iconCls:'icon-cancel'">关闭</div>
    <div id="closeother">关闭其他</div>
    <div id="closeall">关闭全部</div>
    <div class="menu-sep"></div>
    <div id="closeright">关闭右侧标签页</div>
    <div id="closeleft">关闭左侧标签页</div>
</div>

<div id="add-dialog"></div>
<div id="search-dialog"></div>
<script type="text/javascript">
    var menuTreeNodes =${menuTree};
    var ctxPath = '${ctxPath}/';
    var userId = "${user('userid')}";
</script>
</body>
</html>